.class Lcom/instagram/android/creation/b/bm;
.super Landroid/widget/PopupWindow;
.source "FilterFragment.java"


# instance fields
.field final synthetic a:Lcom/instagram/android/creation/b/al;


# direct methods
.method public constructor <init>(Lcom/instagram/android/creation/b/al;Landroid/view/View;II)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 1039
    iput-object p1, p0, Lcom/instagram/android/creation/b/bm;->a:Lcom/instagram/android/creation/b/al;

    .line 1040
    invoke-direct {p0, p2, p3, p4}, Landroid/widget/PopupWindow;-><init>(Landroid/view/View;II)V

    .line 1041
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/creation/b/bm;)V
    .locals 0
    .parameter

    .prologue
    .line 1037
    invoke-super {p0}, Landroid/widget/PopupWindow;->dismiss()V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/creation/b/bm;Landroid/view/View;III)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 1037
    invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/PopupWindow;->showAtLocation(Landroid/view/View;III)V

    return-void
.end method


# virtual methods
.method public dismiss()V
    .locals 4

    .prologue
    .line 1045
    iget-object v0, p0, Lcom/instagram/android/creation/b/bm;->a:Lcom/instagram/android/creation/b/al;

    invoke-virtual {v0}, Lcom/instagram/android/creation/b/al;->v()Landroid/view/View;

    move-result-object v0

    if-nez v0, :cond_1

    .line 1046
    invoke-super {p0}, Landroid/widget/PopupWindow;->dismiss()V

    .line 1066
    :cond_0
    :goto_0
    return-void

    .line 1050
    :cond_1
    iget-object v0, p0, Lcom/instagram/android/creation/b/bm;->a:Lcom/instagram/android/creation/b/al;

    invoke-static {v0}, Lcom/instagram/android/creation/b/al;->l(Lcom/instagram/android/creation/b/al;)V

    .line 1051
    iget-object v0, p0, Lcom/instagram/android/creation/b/bm;->a:Lcom/instagram/android/creation/b/al;

    invoke-static {v0}, Lcom/instagram/android/creation/b/al;->i(Lcom/instagram/android/creation/b/al;)Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;->getRenderMode()I

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_2

    .line 1052
    iget-object v0, p0, Lcom/instagram/android/creation/b/bm;->a:Lcom/instagram/android/creation/b/al;

    invoke-static {v0}, Lcom/instagram/android/creation/b/al;->i(Lcom/instagram/android/creation/b/al;)Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;->setRenderMode(I)V

    .line 1053
    iget-object v0, p0, Lcom/instagram/android/creation/b/bm;->a:Lcom/instagram/android/creation/b/al;

    invoke-static {v0}, Lcom/instagram/android/creation/b/al;->j(Lcom/instagram/android/creation/b/al;)Landroid/os/Handler;

    move-result-object v0

    new-instance v1, Lcom/instagram/android/creation/b/bn;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/bn;-><init>(Lcom/instagram/android/creation/b/bm;)V

    const-wide/16 v2, 0x64

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    goto :goto_0

    .line 1061
    :cond_2
    invoke-super {p0}, Landroid/widget/PopupWindow;->dismiss()V

    .line 1062
    iget-object v0, p0, Lcom/instagram/android/creation/b/bm;->a:Lcom/instagram/android/creation/b/al;

    invoke-static {v0}, Lcom/instagram/android/creation/b/al;->g(Lcom/instagram/android/creation/b/al;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 1063
    iget-object v0, p0, Lcom/instagram/android/creation/b/bm;->a:Lcom/instagram/android/creation/b/al;

    invoke-static {v0}, Lcom/instagram/android/creation/b/al;->z(Lcom/instagram/android/creation/b/al;)V

    goto :goto_0
.end method

.method public showAtLocation(Landroid/view/View;III)V
    .locals 7
    .parameter "parent"
    .parameter "gravity"
    .parameter "x"
    .parameter "y"

    .prologue
    .line 1070
    iget-object v0, p0, Lcom/instagram/android/creation/b/bm;->a:Lcom/instagram/android/creation/b/al;

    invoke-static {v0}, Lcom/instagram/android/creation/b/al;->l(Lcom/instagram/android/creation/b/al;)V

    .line 1071
    iget-object v0, p0, Lcom/instagram/android/creation/b/bm;->a:Lcom/instagram/android/creation/b/al;

    invoke-static {v0}, Lcom/instagram/android/creation/b/al;->i(Lcom/instagram/android/creation/b/al;)Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;->getRenderMode()I

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    .line 1072
    iget-object v0, p0, Lcom/instagram/android/creation/b/bm;->a:Lcom/instagram/android/creation/b/al;

    invoke-static {v0}, Lcom/instagram/android/creation/b/al;->i(Lcom/instagram/android/creation/b/al;)Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;->setRenderMode(I)V

    .line 1073
    iget-object v0, p0, Lcom/instagram/android/creation/b/bm;->a:Lcom/instagram/android/creation/b/al;

    invoke-static {v0}, Lcom/instagram/android/creation/b/al;->j(Lcom/instagram/android/creation/b/al;)Landroid/os/Handler;

    move-result-object v6

    new-instance v0, Lcom/instagram/android/creation/b/bo;

    move-object v1, p0

    move-object v2, p1

    move v3, p2

    move v4, p3

    move v5, p4

    invoke-direct/range {v0 .. v5}, Lcom/instagram/android/creation/b/bo;-><init>(Lcom/instagram/android/creation/b/bm;Landroid/view/View;III)V

    const-wide/16 v1, 0x64

    invoke-virtual {v6, v0, v1, v2}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 1084
    :goto_0
    return-void

    .line 1081
    :cond_0
    const-string v0, "FilterFragment"

    const-string v1, "showing without subclass"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 1082
    invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/PopupWindow;->showAtLocation(Landroid/view/View;III)V

    goto :goto_0
.end method
